import SelectProvider from './SelectProvider.vue';

export function useDialogSelectProvider(propsGetter: any, modalProps = {}) {
    const nuxtApp = useNuxtApp()
    const { t } = nuxtApp.$i18n;
    const {
        open: openDialogSelectProvider,
        close: closeDialogSelectProvider,
        compRef
    } = usePop(SelectProvider, propsGetter, {
        title: 'Select',
        wraperClass: 'currency-select',
        ...modalProps
    })

    return {
        openDialogSelectProvider,
        closeDialogSelectProvider,
        compRef
    }
}